import {ApiProperty} from "@nestjs/swagger";
import {IsOptional} from "class-validator";

export class CreateProjectDto {

    @ApiProperty({ description: '链接地址',type: String,required:true })
    url: string

    @ApiProperty({ description: '项目名称',type: String,required:true })
    name: string

    @ApiProperty({ description: '描述信息',type: String,required:false })
    @IsOptional()
    comment?: string

    @ApiProperty({ description: '预览图',type: String,required:false })
    @IsOptional()
    previewUrl?: string

    @ApiProperty({ description: '可用性',type: Boolean,required:false })
    enable?: boolean
}

